define(function(require, exports, module) {
	var ajax = require('./ajax');
	
    function render() {
    	//TODO
	}
    
    // 上传完成后保存文件
    function saveFile(_key, _hash, _domain, _size, _success, _error) {
    	ajax.post(contextPath + "/oss/qiniu/save/file", {
    		domain: _domain,
    		key: _key,
    		hash: _hash,
    		size: _size
    	}, _success, _error)
    }
    
	module.exports = {
    	render : render,
    	saveFile: saveFile
	};
});